package cultmob.cine.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import br.gov.pe.tce.entity.TceEntity;
import br.gov.pe.tce.exception.NegocioException;
import br.gov.pe.tce.exception.PrincipalException;

/**
 * @author Bruno
 *
 */
@Entity
@Table(name="CINE_Cinema")
public class CinemaEntity extends TceEntity {

	
	@Id @GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column (name = "Codigo", nullable=false, length=4)
	private Integer id;
	
	@Column (name = "Nome", nullable=false, length=35)
	private String nome;
	
	private List<FilmeEntity> filmes;

	public CinemaEntity () {
		
	}
	
	public CinemaEntity(Integer id, String nome, List<FilmeEntity> filmes) {
		super();
		this.id = id;
		this.nome = nome;
		this.filmes = filmes;
	}

	public long getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	public List<FilmeEntity> getFilmes() {
		return filmes;
	}

	public void setFilmes(List<FilmeEntity> filmes) {
		this.filmes = filmes;
	}

	@Override
	public boolean isEdicaoValida() throws NegocioException, PrincipalException {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean isInclusaoValida() throws NegocioException,
			PrincipalException {
		// TODO Auto-generated method stub
		return false;
	}
	
	
	
}
